#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Web_UserMessage : Business.BusinessBase<Web_UserMessage, int>
	{
		#region Fields and Properties

		private int userMessage_State = 0;
		/// <summary>
		/// 
		/// </summary>
		public int UserMessage_State
		{
			get { return userMessage_State; }
			set
			{
				if (value != userMessage_State)
				{
					MarkChanged("UserMessage_State");
					userMessage_State = value;
				}
			}
		}

		private int message_ID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Message_ID
		{
			get { return message_ID; }
			set
			{
				if (value != message_ID)
				{
					MarkChanged("Message_ID");
					message_ID = value;
				}
			}
		}

		private int user_ID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int User_ID
		{
			get { return user_ID; }
			set
			{
				if (value != user_ID)
				{
					MarkChanged("User_ID");
					user_ID = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Web_UserMessage()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Web_UserMessage DataSelect(int id)
		{
			return Services.DALService.Web_UserMessageService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.Web_UserMessageService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.Web_UserMessageService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.Web_UserMessageService.Delete(this);
		}

		#endregion Base overrides
	}
}
